#	$Id: Makefile,v 1.1 2006/03/19 20:13:52 jfb Exp $ 
#
# Makefile for mod_perl

.include "../../share/mk/own.mk"



JAVA_HOME=	/usr/lib/jvm/java-1.5.0-sun

JAVA_INCDIR=	${JAVA_HOME}/include

.if (${.MAKE} == "bmake")
JAVA_MD_INCDIR=	${JAVA_INCDIR}/${OS:tl}
.else
JAVA_MD_INCDIR=	${JAVA_INCDIR}/${OS:L}
.endif


VERSION_MAJOR=0
VERSION_MINOR=1

MOD_NAME=	mod_java
MOD_AUTHOR=	Jean-Francois Brousseau <phrakt@gmail.com>
MOD_DESC=	embedded Java Virtual Machine that allows modules to be \
		written in the Java language

SRCS=		mod_java.c handlers.c java.c
MOD=		mod_java

CFLAGS+=	-I${JAVA_INCDIR} -I${JAVA_MD_INCDIR}
LDFLAGS+=	-L/usr/lib -ljava

javainstall:
	@cd javasrc && ${MAKE}

.include "../../share/mk/mod.mk"
